use rand::Rng;
fn main() {
    let mut rng = rand::thread_rng();
    let num = rng.gen_range(0..10);
    if num > 5 {
        println!("{}>5", num)
    } else if num == 5 {
        println!("{}=5", num)
    } else {
        println!("{}<5", num)
    }
    match num {
        2 => println!("ok"),
        2..=9 => println!("unknown"),
        _ => println!("{}", num),
    }
}
